package com.dps.recommend.layer.merage;


import com.dps.recommend.ann.LayerAnn;
import com.dps.recommend.beans.DpsRequest;
import com.dps.recommend.beans.ProcessInterface;
import com.dps.recommend.beans.RecItemDps;
import com.dps.recommend.enums.LayerEnum;
import com.dps.recommend.utils.DpsBaseService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 融合 根据itemId去重复并且取最高分数的数据
 */
@Service
@LayerAnn(layer = LayerEnum.MERAGE)
public class DpsTopScoreV2Merage extends DpsBaseService implements ProcessInterface {


    @Override
    public <R extends RecItemDps> List doProcess(DpsRequest dpsRequest, List<R> list) {
        return getMerageTopScoreItemList(list);
    }
}
